package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Observable;

import client.Message;
import control.SimpleClient;
import db.parking.beans.Employee;
import vcp.common.AbstractModel;
import vcp.test.entities.User;

public class LoginModel  extends AbstractModel {	
	
	// init functionality	
	public void doLogin(Employee bean) {
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);		
		msg = new Message(bean,"Login");	
		try {
				client.sendToServer(msg);
				//Thread.sleep(1000);
				//msg = client.getReturnMsg();
		}
		catch (Exception ex)
		{
			 System.out.println(ex.toString()+"Emoloyee Login");
		}		
	}


    
	
}
